<?php
//已过期订单大部分是不能验证的   除非是admin帐号
//1: 可以验证   0:不能验证
$isAdmin = ($_SESSION['sid'] == 1) ? 1 : 0;
?>
<link rel="stylesheet" href="http://www.12301.cc/css/common/www.12301.cc.global.css"/>
<link rel="stylesheet" href="http://www.12301.cc/css/terminal_dev.css"/>
<link rel="stylesheet" href="http://www.12301.cc/css/ui/Calendar.css"/>
<style type="text/css">
    .calendar{ position:fixed; top:314px; width:550px; z-index:1000; background:#f0f1f3}
    .calendar .title{ position:relative}
    .calendar table td div.detail{ height:40px; }
    .calendar table th{ text-align:center}
    .calendar table td span{ width:100%; height:100%; float:none; line-height:40px; text-align:center; float:none}
    #tabMainCon .tabPanelCon{ display:none}
    #tabMainCon .tabPanelCon.active{ display:block}
    .orderItem .inCon .error{ float:right; position:relative; top:3px; height:34px; line-height:34px; margin-right:5px; color:red}
    .orderList .checkBtn{ display:block; width:124px; padding:0; text-align:center;}
</style>
<!--[if lt IE 7]><div id="terminalWrap" class="lt-ie10 lt-ie9 lt-ie8 lt-ie7 ie6 terminalWrap"> <![endif]-->
<!--[if IE 7]><div id="terminalWrap" class="lt-ie10 lt-ie9 lt-ie8 ie7 terminalWrap"> <![endif]-->
<!--[if IE 8]><div id="terminalWrap" class="lt-ie10 lt-ie9 ie8 terminalWrap"> <![endif]-->
<!--[if IE 9]><div id="terminalWrap" class="lt-ie10 ie9 terminalWrap"><![endif]-->
<!--[if gt IE 9]><!--><div id="terminalWrap" class="terminalWrap"> <!--<![endif]-->
    <input name="" type="hidden" id="isAdmin" value="<?=$isAdmin?>"/>
    <input id="gsid" name="" type="hidden" value="<?=$_GET['sid']?>"/>
    <div class="termTopTit">票券验证</div>
    <div class="prodBox">
        <div id="prodPhoto" class="prodPhoto">
            <img id="" class="loading" src="http://www.12301.cc/images/icons/gloading.gif" alt=""/>
            <img class="error" src="http://www.12301.cc/images/defaultThum.jpg" alt=""/>
        </div>
        <div id="prodMsg" class="prod prodMsg">
            <div class="prodDetail">
                <span class="col"><em class="lt">产品ID：</em><span id="term_prodId" class="rt">--</span></span>
                <span class="col"><em class="lt">终端号：</em><span id="term_termNum" class="rt">--</span></span>
                <span class="col"><em class="lt">产品编号：</em><span id="term_prodNum" class="rt">--</span></span>
            </div>
            <div class="prodList">
                <span class="t">选择产品：</span>
                <input style="position:relative" id="prodSearchInp" class="prodSearchInp" type="text"/>
            </div>
            <!--<div class="prodList" style="margin-top:6px"><span class="t">验证时间：</span><input id="termDateInp" class="termDateInp" type="text"/></div>-->
        </div>
        <div id="prodBoxStatus" class="prodBoxStatus"></div>
    </div>
        <ul id="tabUl" class="tabUl">
            <li data-type="fast" class="tabLi fast">快速验证</li>
            <li data-type="normal" class="tabLi normal active">改单验证</li>
            <li data-type="overdue" class="tabLi overdue">已过期订单验证</li>
        </ul>
    <div id="tabMainCon" class="tabMainCon">
            <div class="tabPanelCon fast">
                <div class="entryTop">
                    <input id="fastTermInp" class="fastTermInp entryInp" type="text" placeholder="凭证码 / 手机号"/>
                    <a id="fastTermBtn" class="fastTermBtn entryInp" href="javascript:;">验证</a>
                    <span class="keyEnterTip">可按回车键直接验证</span>
                </div>
                <ul id="fastTermResUl" class="fastTermResUl orderList">
                </ul>
            </div>
        <div class="tabPanelCon normal active">
            <div id="termContainer" class="termContainer">
                <input id="termSearInp" class="termSearInp entryInp" value="<?=$_GET['chk']?$_GET['chk']: '凭证码 / 手机号 '?>" type="text"/>
                <input type="button" id="termSearBtn" class="termSearBtn checkBtn" value="搜索"/>
                <span class="keyEnterTip">可按回车键直接搜索</span>
                <ul id="myOrderList" class="orderList"></ul>
            </div>
            <ul id="prodListUl" class="prodListUl"></ul>
        </div>
            <div class="tabPanelCon overdue">
                <div class="entryTop">
                    <input id="overdueTermInp" class="overdueTermInp entryInp" type="text" placeholder="订单号"/>
                    <a id="overdueTermBtn" class="overdueTermBtn checkBtn" href="javascript:;">验证</a>
                    <span class="keyEnterTip">已过期订单只能使用订单号验证</span>
                </div>
                <ul id="fastTermResUl" class="fastTermResUl orderList">
                </ul>
            </div>
    </div>
    <? include "/var/www/html/new/d/tpl/terminal_new/tpl/orderlist_tpl.html" ?>
    <script type="text/javascript" src="http://wx.12301.cc/public/js/plugins/underscore-min.js"></script>
    <script type="text/javascript" src="http://wx.12301.cc/public/js/build/common.min.js"></script>
    <script type="text/javascript" src="http://www.12301.cc/tpl/terminal_new/js/build/build.js"></script>
</div>
<div id="productListPage" class="productListPage">
    <div id="productListBox" class="productListBox">
        <div class="searchBox">
            <div class="con">
                <input type="text" name="" id="" class="searchInp"/><i class="iconfont searchIcon">&#xe60a;</i>
            </div>
        </div>
        <div class="listWrap">
            <ul class="listUl"></ul>
        </div>
    </div>
</div>
<div id="calendarContainer" style="display:none" class="calendar"></div>
